import { ApiProperty } from '@nestjs/swagger';
export class List {
  @ApiProperty({ description: '消息id', required: false })
  id: number;

  @ApiProperty({ description: '消息内容', required: false })
  content: string;

  @ApiProperty({ description: '消息类型', required: false })
  type: string;

  @ApiProperty({ description: '用户id', required: false })
  userId: number;

  @ApiProperty({ description: '创建时间', required: false })
  createTime: Date;

  @ApiProperty({ description: '更新时间', required: false })
  updataTime: Date;
}
export class InformListVo {
  @ApiProperty({
    type: [List],
    description: '消息列表',
    required: false,
  })
  list: List[];

  @ApiProperty({ description: '页码', required: false })
  pageNum: number;

  @ApiProperty({ description: '页数', required: false })
  pageSize: number;

  @ApiProperty({ description: '总数', required: false })
  total: number;
}
